<html lang="en">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <title>Vaccination scheduler - Timefold Quarkus</title>
    <link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/webjars/font-awesome/css/all.css" />
    <link rel="stylesheet" href="/webjars/leaflet/leaflet.css">
    <link rel="stylesheet" href="/webjars/timefold/css/timefold-webui.css" />
    <link rel="icon" href="/webjars/timefold/img/timefold-favicon.svg" type="image/svg+xml">
</head>
<body>
<header id="timefold-auto-header"></header>
<div class="container-fluid">
    <div class="sticky-top d-flex justify-content-center align-items-center" aria-live="polite" aria-atomic="true">
        <div id="notificationPanel" style="position: absolute; top: .5rem;"></div>
    </div>
    <h1>Vaccination scheduler</h1>
    <p>Generate the optimal schedule to inject a country with COVID-19 vaccines.</p>

    <div class="mb-2">
        <button id="refreshButton" type="button" class="btn btn-secondary">
            <span class="fas fa-refresh"></span> Refresh
        </button>
        <button id="solveButton" type="button" class="btn btn-success">
            <span class="fas fa-play"></span> Solve
        </button>
        <button id="stopSolvingButton" type="button" class="btn btn-danger">
            <span class="fas fa-stop"></span> Stop solving
        </button>
        <span id="score" class="score ms-2 align-middle fw-bold">Score: ?</span>

        <div class="float-end">
            <ul class="nav nav-pills" role="tablist">
                <li class="nav-item" role="presentation">
                    <button class="nav-link active" id="scheduleTab" data-bs-toggle="tab" data-bs-target="#scheduleTabDiv" type="button" role="tab" aria-controls="schedulePanel" aria-selected="true">Schedule</button>
                </li>
                <li class="nav-item" role="presentation">
                    <button class="nav-link" id="mapTab" data-bs-toggle="tab" data-bs-target="#mapTabDiv" type="button" role="tab" aria-controls="mapPanel" aria-selected="false">Map</button>
                </li>
                <li class="nav-item" role="presentation">
                    <button class="nav-link" id="unassignedTab" data-bs-toggle="tab" data-bs-target="#unassignedTabDiv" type="button" role="tab" aria-controls="unassignedPanel" aria-selected="false">Unassigned</button>
                </li>
            </ul>
        </div>
    </div>
    <div class="ms-5 me-5">
        <span>Vaccine types:</span>
        <div id="vaccineTypes" class="row row-cols-3 g-3 mb-4"></div>
    </div>
    <div class="tab-content">
        <div class="tab-pane fade show active" id="scheduleTabDiv" role="tabpanel" aria-labelledby="scheduleTab">
            <table class="table table-borderless table-striped" id="scheduleTable">
                <!-- Filled in by app.js -->
            </table>
        </div>
        <div class="tab-pane fade" id="mapTabDiv" role="tabpanel" aria-labelledby="mapTab">
            <div id="leafletMap" style="width: 100%; height: 850px;"></div>
        </div>
        <div class="tab-pane fade" id="unassignedTabDiv" role="tabpanel" aria-labelledby="unassignedTab">
            <p class="mb-4">There are <span id="assignedPersonCount">0</span> assigned persons
                and <span id="unassignedPersonCount">0</span> unassigned persons.</p>
            <h2>Unassigned persons</h2>
            <div id="unassignedPersons" class="row row-cols-3 g-3 mb-4"></div>
        </div>
    </div>
</div>
<footer id="timefold-auto-footer"></footer>

<script src="/webjars/jquery/jquery.min.js"></script>
<script src="/webjars/bootstrap/js/bootstrap.min.js"></script>
<script src="/webjars/js-joda/dist/js-joda.min.js"></script>
<script src="/webjars/leaflet/leaflet.js"></script>
<script src="/webjars/timefold/js/timefold-webui.js"></script>
<script src="/app.js"></script>
</body>
</html>
